//引用Vuex
import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
 
//实例store对象
const store = new Vuex.Store({
	state: {
		loginStatus: false,
		showForceLogin:false,
	},
    //mutations是修改store数据入口
	mutations: {
		loginStatus(state, status) {
			state.loginStatus = status;
		},
		showForceLogin(state,status){
			state.showForceLogin = status;
		},
		setTokenAndBack(state,params){
			console.log(state,params)
		}
	}
})
 
//导出store对象
export default store